#include <iostream>
#include <algorithm>
#include <map>
using namespace std;
const int N = 1e5 + 7;
int n;
map<int, int> cnt;
int main() {
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    scanf("%d", &n);
    for (int i = 1, r; i <= n; ++i) {
        scanf("%d", &r);
        ++cnt[r];
    }
    int l = 0;
    for (auto x : cnt) {
        int p = x.first, t = x.second;
        l += t - min(t, l);
    }
    printf("%d", l);
    return 0;
}
